from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework_jwt.authentication import JSONWebTokenAuthentication

# Create your views here.
from app01.auth import MyToken


class BookView(APIView):
    # authentication_classes = [MyToken, ]

    def get(self, request):
        print(request.user)
        print(type(request.user))
        return Response('ok')